Collection of study data from patient records